package com.link510.aitools.core.domain;

import com.contrarywind.interfaces.IPickerViewData;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author cqnews
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class SelectListItem implements IPickerViewData {

    /**
     * 值
     */
    public String value = "";

    /**
     * 文本
     */
    public String text = "";

    /**
     * 如果选定此项，则为 true；否则为 false。
     */
    public boolean selected = false;



    public SelectListItem(String value, String text) {
        this.value = value;
        this.text = text;
    }

    @Override
    public String getPickerViewText() {
        return text;
    }


}
